<?php
 
$path_info=pathinfo($_SERVER['SCRIPT_NAME']);
$filename=$path_info['basename'];
$class_index="";
$class_example="";
$class_down="";
$class_doc="";
$class_about="";

if($filename=="index.php") $class_index="active";
if($filename=="example.php") $class_example="active";
if($filename=="downloads.php") $class_down="active";
if($filename=="doc.php") $class_doc="active";
if($filename=="about.php") $class_about="active";
 

?>

<style>

#Language {
	position:absolute;
	width:50px;
	height:20px;
	z-index:22;
	left: 690px;
	top: 55px;
	color:white;
}
#flag1 {
	position:absolute; 
	z-index:22;
	left: 755px;
	top: 55px;  
}

#flag2 {
	position:absolute;
	width:50px;
	height:20px;
	z-index:22;
	left: 790px;
	top: 55px; 
}

#poweredby {
	position:absolute;
	width:100px;
	height:50px;
	z-index:22;
	right: 105px;
	top: 35px;   
}

 

</style>

<div id="header">
	<div id="site-name"><img src="images/logo.gif" /></div>
		<ul id="nav">
		<li class="<?=$class_index?>"><a href="index.php">首页</a>			</li> 
		<li class="<?=$class_example?>"><a href="example.php">Examples</a>					</li> 
		<li class="<?=$class_down?>"><a href="downloads.php" >下载</a>		</li>
		<li class="<?=$class_doc?>"><a href="doc.php">文档</a>				</li> 
		<li class="<?=$class_about?>"  ><a href="about.php">关于</a>			</li> 
		</ul>
	 <div  id="Language">Language: </div>
		<div  id="flag1"> <a href="../phpgrid-web/" ><img style="width:24px;height:16px;" src="./images/china_flag.png" /></a></div>
	    <div id="flag2"><a href="../phpgrid-web-en/" ><img  style="width:24px;height:16px;" src="./images/eng_flag.png"/></a></div> 
		<div id="poweredby">
			<a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=215084&amp;type=5" width="89" height="32" border="0" alt="SourceForge.net Logo" /></a>&nbsp;&nbsp;<a href="http://sourceforge.net/donate/index.php?group_id=215084"><img src="wsimages/project-support.jpg" width="88" height="32" border="0" alt="Support This Project" /></a>
		</div>
		
		
	    <div id="Layer1">
	      <div class="STYLE3" id="innerFooter">Powered by PhpGrid  | Template designed by Redline(Spinz ) </div>
    </div>
  </div>
  